package com.xhu.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "compete")
@Accessors(chain = true)
public class Compete {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 分析时间
     */
    @TableField(value = "compete_month")
    private String competeMonth;

    /**
     * 分析标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 类型
     */
    @TableField(value = "`type`")
    private String type;

    /**
     * 状态 0-未归档 1-归档
     */
    @TableField(value = "compete_status")
    private String competeStatus;

    /**
     * 最后更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @TableField(value = "`operator`")
    private String operator;

    @TableField(value = "is_deleted")
    @TableLogic
    private Integer isDeleted;

    public static final String COL_ID = "id";

    public static final String COL_COMPETE_MONTH = "compete_month";

    public static final String COL_TITLE = "title";

    public static final String COL_TYPE = "type";

    public static final String COL_COMPETE_STATUS = "compete_status";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_OPERATOR = "operator";
}